package jdbcmigration;



public class Validator {

	public static void notNull(Object object, String message) {
            if(  object == null)
            {
		message(message);
            }
	}
	public static void isTrue(boolean trueExpression, String message) {
            if(!trueExpression)
            {
		message(message);
            }
	}

    private static void message(String message) {
        try
        {
            System.out.println(message);
            if(true)
            {
                throw  new Exception(message);
            }
        }catch(Exception ex)
        {
            ex.printStackTrace();
            System.exit(0);
        }
        
    }
}
